package org.com.creationalPattern.builderPattern;

/**
 * 生成一个建造对象
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/14 15:03
 */
public class X201Builder implements ComputerBuilder {
    private X201 computer=new X201();

    @Override
    public void BuildCpu() {
        computer.setCUP("i3-3300");
    }

    @Override
    public void BuildRam() {
        computer.setRam("8G");
    }

    @Override
    public void BuildHardDisk() {
        computer.setHardDisk("512G 7200转");
    }

    @Override
    public void BuildGraphicsCard() {
        //无显卡
    }

    @Override
    public void BuildMonitor() {
        computer.setMonitor("13.3寸 1920*768");
    }

    @Override
    public void BuildOs() {
        computer.setOS("Window10 家庭版");
    }

    @Override
    public X201 getResult() {
        return computer;
    }
}
